import { v4 as uuid } from 'uuid';

export type TodoType = {
    title: string,
    createTime: number,
    isDone: boolean,
    id: string
}

export class Todo {
    id: string = uuid();
    title: string;
    createTime: number = Date.now();
    isDone: boolean = false;

    constructor(title: string) {
        this.title = title;
    }
}
